package com.clothing.customization.repository;

import com.clothing.customization.entity.AccessoryInventory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface AccessoryInventoryRepository extends JpaRepository<AccessoryInventory, Long>, JpaSpecificationExecutor<AccessoryInventory> {
    boolean existsByAccessoryCode(String accessoryCode);
    boolean existsByAccessoryCodeAndIdNot(String accessoryCode, Long id);
} 